<?php
$error = $this->Session->flash();
if(!empty($error)){?>
<div class="warning"><?php echo $error; ?></div>
<?php } ?>

<div id="column-right">
    <?php echo $this->element('sidebar'); ?>
</div>


<div id="content">
    <div class="tab"><h1>Forgot Your Password?</h1></div>
    <br>
    <?php echo $this->Form->create(null,
        array(
            'type' => 'post', 'id' => 'frm_login',
            'autocomplete' => 'off',
            'style' => 'font-family:verdana'
        ));
    ?>
        <p>Enter the e-mail address associated with your account. Click submit to have your password e-mailed to you.</p>
        <p><b>Your E-Mail Address</b></p>
        <div class="content">
            <div class="login_error" style="color: red; font-style: italic; text-align: center; margin-bottom: 10px;">
            </div><!--end .login_error-->
            <table class="form">
                <tbody>
                    <tr>
                        <td>E-Mail Address:</td>
                        <td>
                            <?php echo $this->Form->input('User.email', array('label' => false, 'class' => 'home_login_input', 'value' => '',  'autocomplete' => 'off')); ?>
                        </td>
                    </tr>
                    <tr>
                        <td>Captcha:</td>
                        <td>
                            <?php echo $this->Html->image(
                                array('controller' => 'User', 'action' => 'captcha'),
                                array('alt' => 'Captcha', 'class' => 'img_captcha',
                                    'style' => 'float: left; margin-right: 10px;'
                                )
                            ); ?> 
                        </td>
                    </tr>
                    <tr>
                        <td>Enter captcha code:</td>
                        <td><?php echo $this->Form->input('User.captcha', array('class' => 'input_img_captcha', 'label' => false, 'style' => 'width: 122px;', 'class' => 'home_login_input', 'value' => '', 'placeholder' => 'Enter captcha code', 'autocomplete' => 'off')); ?></td>
                    </tr>
                </tbody>
            </table>
        </div>
        <div class="buttons">
            <div class="left">
                <?php echo $this->Html->link(
                    'Back',
                    array('controller' => 'User', 'action' => 'login'), array('class' => 'button')
                ); ?>
            </div>
            <div class="right">
                <input type="submit" value="Continue" class="button">
            </div>
        </div>
    </form>
</div>
